package com.cxf.windex.enums;

public enum StatusEnum {
  APPLY("0", "认证申请"),
  NORMAL("1", "正式用户"),
  FAIL("2", "审核失败");


  private final String key;
  private final String desc;

  private StatusEnum(String key, String desc) {
    this.key = key;
    this.desc = desc;
  }

  public static StatusEnum getIdType(String idType) {
    StatusEnum[] its = values();
    StatusEnum[] arr$ = its;
    int len$ = its.length;

    for(int i$ = 0; i$ < len$; ++i$) {
      StatusEnum it = arr$[i$];
      if (it.getKey() .equals( idType)) {
        return it;
      }
    }

    return NORMAL;
  }

  public String getKey() {
    return this.key;
  }

  public String getDesc() {
    return this.desc;
  }
}
